package com.huanletao.tree;

/**
 * <p>
 * </p>
 * package: com.huanletao.spring.data
 * description:
 * className: TreeData
 * author:  踏雪无痕
 * copyright: Copyright (c) 2023/5/23 11:36
 * since: 1.0.0
 */
public class TreeData {
    private Long id;
    private Long parentId;

    private Long value;

    public TreeData(Long id, Long parentId, Long value) {
        this.id = id;
        this.parentId = parentId;
        this.value = value;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getValue() {
        return value;
    }

    public void setValue(Long value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "TreeData{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", value=" + value +
                '}';
    }
}
